<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : BuscarPedido
    Created on : 02/06/2009, 14:15:58
    Author     : Administrador
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ice:outputHtml id="outputHtml1">
            <ice:outputHead id="outputHead1">
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle1"/>
                <ice:outputStyle href="./xmlhttp/css/rime/rime.css" id="outputStyle2"/>
                <ice:outputStyle href="./resources/css/formata_conteudo.css" id="outputStyle3"/>
            </ice:outputHead>
            <ice:outputBody id="outputBody1" style="-rave-layout: grid">
                <ice:form id="form1">
                    <!-- Painel Principal -->
                    <ice:panelGroup id="painelPrincipal" styleClass="principal">
                        <!--  Painel Menu  -->
                        <ice:panelLayout id="panelLayoutMenu" style="width: 100%; top: 26%; left: 9.5%"/>
                        <!-- Painel Cabeçalho -->
                        <ice:panelLayout id="panelLayoutCabecalho" style=" -rave-layout: grid" styleClass="cabecalho">
                            <ice:commandButton action="#{view$Util.btn_voltar_action}" id="panelLayoutLogo" image="/resources/images/logo_soligee.png" styleClass="logo"/>
                        </ice:panelLayout>
                        <!-- Fim - Painel Cabeçalho -->
                        <!-- Painel Título -->
                        <ice:panelLayout id="painelTitulo" style="-rave-layout: grid" styleClass="titulo bPedido">
                            <!-- Painel Voltar -->
                            <ice:panelLayout id="painelVoltar" styleClass="pnVoltar">
                                <ice:commandButton action="#{view$Util.btn_voltar_action}" id="btn_voltar" image="/resources/images/btn/voltar.png"
                                    immediate="true" styleClass="btnVoltar"/>
                            </ice:panelLayout>
                            <!-- Fim Painel Voltar -->
                        </ice:panelLayout>
                        <!-- Painel Busca -->
                        <ice:panelLayout id="panelPainelBusca" style="-rave-layout: grid" styleClass="painelBusca">
                            <!-- Tipo Busca  -->
                            <ice:selectOneMenu binding="#{view$BuscarPedido.tipoBusca}" id="tipoBusca" partialSubmit="true" styleClass="tipoBusca" value="#{view$BuscarPedido.defaultSelectedData2.selectedObject}">
                                <f:selectItems id="selectOneMenu1selectItems" value="#{view$BuscarPedido.tipoBuscaDefaultItems}"/>
                            </ice:selectOneMenu>
                            <!-- CampoABuscar  -->
                            <ice:selectInputText binding="#{view$BuscarPedido.campoABuscar}" id="campoABuscar" style="z-index: 3" styleClass="campoABuscar"
                                valueChangeListener="#{view$BuscarPedido.campoABuscar_processValueChange}" width="240">
                                <f:selectItems id="selectInputText1selectedItems" value="#{view$BuscarPedido.item}"/>
                            </ice:selectInputText>
                            <ice:commandButton action="#{view$BuscarPedido.btnBuscar_action}" binding="#{view$BuscarPedido.btnBuscar}" id="btnBuscar"
                                styleClass="btnBuscar" value="Buscar"/>
                            <ice:commandButton action="#{view$BuscarPedido.btnAlterar_action}" binding="#{view$BuscarPedido.btnAlterar}" id="btnAlterar"
                                immediate="true" styleClass="btnAlterar" value="Alterar"/>
                            <ice:commandButton action="#{view$BuscarPedido.btnConfirmaAlteracao_action}" binding="#{view$BuscarPedido.btnConfirmaAlteracao}"
                                id="btnConfirmaAlteracao" styleClass="btnAlterar" value="Confirma Alteração"/>
                            <ice:commandButton action="#{view$BuscarPedido.btnExcluir_action}" binding="#{view$BuscarPedido.btnExcluir}" id="btnExcluir"
                                styleClass="btnExcluir" value="Excluir"/>
                        </ice:panelLayout>
                        <!-- Painel Corpo -->
                        <ice:panelLayout id="painelCorpo" styleClass="pnCorpo">
                            <!-- Painel Corpo Esquerda -->
                            <ice:panelLayout id="painelCorpoEsquerda" styleClass="pnCorpoEsquerda">
                                <!-- Tabela ResultadoBusca -->
                                <center>
                                    <ice:dataTable binding="#{view$BuscarPedido.tabelaResultadoBusca}" id="tabelaResultadoBusca" rows="10"
                                        value="#{view$BuscarPedido.dataTable1Model1}" var="currentRow">
                                        <f:facet name="footer"/>
                                        <f:facet name="footer"/>
                                        <ice:column id="column1">
                                            <h:commandLink action="#{view$BuscarPedido.linkSelecionar_action}" binding="#{view$BuscarPedido.linkSelecionar}"
                                                id="linkSelecionar" value="#{currentRow.codPedido}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText2" value="Código"/>
                                            </f:facet>
                                        </ice:column>
                                        <ice:column id="column7">
                                            <ice:outputText id="outputText1" value="#{currentRow.valorTotalItens}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText14" value="Valor Total Itens"/>
                                            </f:facet>
                                        </ice:column>
                                        <ice:column id="column8">
                                            <ice:outputText id="outputText3" value="#{currentRow.valorTotalPedido}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText16" value="Valor Total Pedido"/>
                                            </f:facet>
                                        </ice:column>
                                        <ice:column id="column2">
                                            <ice:outputText id="outputText5" value="#{currentRow.dataEmissao}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText4" value="Data Emissão"/>
                                            </f:facet>
                                        </ice:column>
                                        <ice:column id="column3">
                                            <ice:outputText id="outputText7" value="#{currentRow.dataRecebimento}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText6" value="Data Recebimento"/>
                                            </f:facet>
                                        </ice:column>
                                    </ice:dataTable>
                                </center>
                            </ice:panelLayout>
                            <!-- Painel Corpo Direita -->
                            <ice:panelLayout id="painelCorpoDireita" layout="flow" styleClass="pnCorpoDireita">
                                <!-- Colocar TabSet Aqui -->
                                <ice:panelTabSet binding="#{view$BuscarPedido.painelAbasPedido}" id="painelAbasPedido" styleClass="pnTabSet" tabPlacement="Top">
                                    <ice:panelTab id="aba01" label="Pedido" style="z-index:2;">
                                        <ice:panelLayout id="conteudoAbaPedido" layout="flow" styleClass="pnLayConteudo">
                                            <!--ID -->
                                            <ice:outputLabel id="tx_id" style="left: 0px; top: 0px; position: absolute" value="ID: "/>
                                            <ice:inputText binding="#{view$BuscarPedido.campoId}" id="campoId" partialSubmit="true" readonly="true" style="left: -2px; top: 18px; position: absolute; width: 35px"/>
                                            <!--Nome do Fornecedor-->
                                            <ice:outputLabel id="tx_nomeFornecedor" style="left: 0px; top: 45px; position: absolute" value="Nome do Fornecedor: "/>
                                            <!--Data de Emissão -->
                                            <ice:outputLabel id="tx_dataEmissao" style="left: 0px; top: 95px; position: absolute" value="Data de Emissão: "/>
                                            <ice:selectInputDate binding="#{view$BuscarPedido.dataEmissao}" id="dataEmissao" partialSubmit="true"
                                                popupDateFormat="dd/MM/yyyy" renderAsPopup="true" renderMonthAsDropdown="true" renderYearAsDropdown="true"
                                                style="height: 26px; left: 0px; top: 115px; position: absolute; width: 190px"
                                                value="#{view$BuscarPedido.selectInputDateBean3.date1}" visible="true"/>
                                            <!--Data de Recebimento -->
                                            <ice:outputLabel id="tx_dataRecebimento" style="left: 215px; top: 95px; position: absolute" value="Data de Recebimento: "/>
                                            <ice:selectInputDate binding="#{view$BuscarPedido.dataRecebimento}" id="dataRecebimento" partialSubmit="true"
                                                popupDateFormat="dd/MM/yyyy" renderAsPopup="true" renderMonthAsDropdown="true" renderYearAsDropdown="true"
                                                style="height: 22px; left: 210px; top: 115px; position: absolute; width: 190px"
                                                value="#{view$BuscarPedido.selectInputDateBean4.date1}" visible="true"/>
                                            <!--Porcentagem Frete -->
                                            <ice:outputLabel id="tx_porcentagemFrete" style="left: 0px; top: 205px; position: absolute" value="Porcentagem do Frete: "/>
                                            <ice:inputText binding="#{view$BuscarPedido.campoPorcentagemFrete}"
                                                converter="#{view$BuscarPedido.doubleConverter1}" id="campoPorcentagemFrete" partialSubmit="true"
                                                style="left: -2px; top: 223px; position: absolute; width: 55px" valueChangeListener="#{view$BuscarPedido.campoPorcentagemFrete_processValueChange}"/>
                                            <!--Porcentagem Desconto -->
                                            <ice:outputLabel id="tx_porcentagemDesconto" style="left: 0px; top: 150px; position: absolute" value="Porcentagem do Desconto: "/>
                                            <ice:inputText binding="#{view$BuscarPedido.campoPorcentagemDesconto}"
                                                converter="#{view$BuscarPedido.doubleConverter1}" id="campoPorcentagemDesconto" partialSubmit="true"
                                                style="left: -2px; top: 173px; position: absolute; width: 55px" valueChangeListener="#{view$BuscarPedido.campoPorcentagemDesconto_processValueChange}"/>
                                            <!--Porcentagem Embalagem -->
                                            <ice:outputLabel id="tx_porcentagemEmbalagem" style="left: 215px; top: 150px; position: absolute; width: 263px" value="Porcentagem da Embalagem: "/>
                                            <ice:inputText binding="#{view$BuscarPedido.campoPorcentagemEmbalagem}"
                                                converter="#{view$BuscarPedido.doubleConverter1}" id="campoPorcentagemEmbalagem" partialSubmit="true"
                                                style="left: 213px; top: 173px; position: absolute; width: 55px" valueChangeListener="#{view$BuscarPedido.campoPorcentagemEmbalagem_processValueChange}"/>
                                            <!--Total de Produtos -->
                                            <!--Link Cancelar -->
                                            <ice:commandLink action="#{view$BuscarPedido.linkCancelar_action}" id="linkCancelar" immediate="true" styleClass="cancelarBtn minix"/>
                                            <!-- Link Proxima Aba -->
                                            <ice:commandLink action="#{view$BuscarPedido.link_proximaAba01_action}" id="link_proximaAba01" styleClass="proximaBtn"/>
                                            <ice:selectOneMenu binding="#{view$BuscarPedido.campoRepresentante}" id="campoRepresentante" partialSubmit="true"
                                                style="left: 238px; top: 70px; position: absolute; width: 144px" value="#{view$BuscarPedido.defaultSelectedData5.selectedObject}">
                                                <f:selectItems id="selectOneMenu1selectItems2" value="#{view$BuscarPedido.selectOneMenu1DefaultItems5}"/>
                                            </ice:selectOneMenu>
                                            <ice:selectOneMenu binding="#{view$BuscarPedido.campoFornecedor}" id="campoFornecedor" partialSubmit="true"
                                                style="left: -2px; top: 70px; position: absolute; width: 144px" value="#{view$BuscarPedido.defaultSelectedData6.selectedObject}">
                                                <f:selectItems id="selectOneMenu1selectItems1" value="#{view$BuscarPedido.selectOneMenu1DefaultItems}"/>
                                            </ice:selectOneMenu>
                                        </ice:panelLayout>
                                        <ice:outputLabel id="txNomeRepresentante" style="left: 238px; top: 50px; position: absolute" value="Nome Representante:"/>
                                    </ice:panelTab>
                                    <ice:panelTab id="aba02" label="Itens" style="z-index:2;">
                                        <ice:panelLayout id="conteudoAbaProduto2" layout="flow" styleClass="pnLayConteudo">
                                            <!--Forma de Pagamento -->
                                            <ice:outputLabel binding="#{view$BuscarPedido.tx_formaPagamento}" id="tx_formaPagamento"
                                                style="left: 220px; top: 225px; position: absolute; width: 168px" value="Forma de Pagamento: "/>
                                            <ice:selectOneMenu binding="#{view$BuscarPedido.formaPagamento}" id="formaPagamento" partialSubmit="true"
                                                style="left: 273px; top: 253px; position: absolute; width: 68px" value="#{view$BuscarPedido.botaoSelecionadoTipoPagamento.selectedObject}">
                                                <f:selectItems binding="#{view$BuscarPedido.itemsPagamento}" id="itemsPagamento" value="#{view$BuscarPedido.botaoTipoPagamento}"/>
                                            </ice:selectOneMenu>
                                            <!--Total do Pedido -->
                                            <ice:outputLabel id="tx_totalPedido" style="left: 5px; top: 225px; position: absolute" value="Valor Total do Pedido: "/>
                                            <ice:inputText binding="#{view$BuscarPedido.campoValorTotalPedido}"
                                                converter="#{view$BuscarPedido.doubleConverter1}" disabled="true" id="campoValorTotalPedido" immediate="true" style="left: 3px; top: 248px; position: absolute; width: 70px"/>
                                            <!-- Tabela Itens Pedido -->
                                            <center>
                                                <ice:dataTable binding="#{view$BuscarPedido.tabelaItensPedido1}" id="tabelaItensPedido1" rows="5"
                                                    style="left: 12px; top: -10px; position: absolute" value="#{view$BuscarPedido.dataTable1Model2}" var="currentRow">
                                                    <f:facet name="footer"/>
                                                    <f:facet name="footer"/>
                                                    <f:facet name="footer"/>
                                                    <f:facet name="footer"/>
                                                    <f:facet name="footer"/>
                                                    <f:facet name="footer"/>
                                                    <f:facet name="footer"/>
                                                    <ice:column id="column4">
                                                        <ice:outputText id="outputText9" value="#{currentRow.codItensCompra}"/>
                                                        <f:facet name="header">
                                                            <ice:outputText id="outputText8" value="Cód."/>
                                                        </f:facet>
                                                    </ice:column>
                                                    <ice:column id="column5">
                                                        <ice:outputText id="outputText11" value="#{currentRow.descricaoProduto}"/>
                                                        <f:facet name="header">
                                                            <ice:outputText id="outputText10" value="Descrição"/>
                                                        </f:facet>
                                                    </ice:column>
                                                    <ice:column id="column9">
                                                        <ice:outputText id="outputText12" value="#{currentRow.precoCustoUnitProd}"/>
                                                        <f:facet name="header">
                                                            <ice:outputText id="outputText17" value="Valor Unit"/>
                                                        </f:facet>
                                                    </ice:column>
                                                    <ice:column id="column8">
                                                        <ice:outputText id="outputText15" value="#{currentRow.qtdadeProduto}"/>
                                                        <f:facet name="header">
                                                            <ice:outputText id="outputText16" value="Quantidade"/>
                                                        </f:facet>
                                                    </ice:column>
                                                    <ice:column id="column10">
                                                        <ice:outputText id="outputText13" value="#{currentRow.totalItens}"/>
                                                        <f:facet name="header">
                                                            <ice:outputText id="outputText19" value="Total"/>
                                                        </f:facet>
                                                    </ice:column>
                                                    <ice:column id="column11">
                                                        <h:commandButton action="#{view$BuscarPedido.btnAlteraItemTabela_action}"
                                                            binding="#{view$BuscarPedido.btnAlteraItemTabela}" id="btnAlteraItemTabela" value="Alterar"/>
                                                        <f:facet name="header">
                                                            <ice:outputText id="outputText20" value="Alterar Item"/>
                                                        </f:facet>
                                                    </ice:column>
                                                </ice:dataTable>
                                            </center>
                                            <!--Link Cancelar -->
                                            <ice:commandLink action="#{view$BuscarPedido.linkCancelar2_action}" binding="#{view$BuscarPedido.linkCancelar2}"
                                                id="linkCancelar2" immediate="true" styleClass="cancelarBtn minix"/>
                                        </ice:panelLayout>
                                    </ice:panelTab>
                                    <ice:panelTab binding="#{view$BuscarPedido.aba03}" id="aba03" label="Alterar Item" style="">
                                        <ice:panelLayout id="conteudoAba03" styleClass="pnLayConteudo">
                                            <ice:outputLabel id="txCodItens" style="left: 20px; top: 10px; position: absolute" value="Código"/>
                                            <ice:outputLabel id="txDescProduto" style="left: 160px; top: 10px; position: absolute" value="Descrição"/>
                                            <ice:outputLabel id="txCustoUnitProdut" style="left: 160px; top: 70px; position: absolute" value="Quantidade"/>
                                            <ice:outputLabel id="txTotal" style="left: 20px; top: 70px; position: absolute" value="Valor Unitário"/>
                                            <ice:outputLabel id="txDescricao" style="left: 20px; top: 120px; position: absolute" value="Total"/>
                                            <ice:inputText binding="#{view$BuscarPedido.campoCodProduto}" id="campoCodProduto" readonly="true"
                                                style="left: 18px; top: 38px; position: absolute" value="#{ItensCompra.codItensCompra}"/>
                                            <ice:inputText binding="#{view$BuscarPedido.campoDescricao}" id="campoDescricao" partialSubmit="true"
                                                readonly="true" style="left: 158px; top: 38px; position: absolute" value="#{ItensCompra.descricaoProduto}"/>
                                            <ice:inputText binding="#{view$BuscarPedido.campoValorUnitario}" id="campoValorUnitario" partialSubmit="true"
                                                readonly="true" style="left: 18px; top: 98px; position: absolute" value="#{ItensCompra.precoCustoUnitProd}"/>
                                            <ice:inputText binding="#{view$BuscarPedido.campoQuantidade}" id="campoQuantidade" partialSubmit="true"
                                                readonly="true" style="left: 158px; top: 98px; position: absolute" value="#{ItensCompra.qtdadeProduto}"/>
                                            <ice:inputText binding="#{view$BuscarPedido.campoTotal}" id="campoTotal" partialSubmit="true" readonly="true"
                                                style="left: 18px; top: 148px; position: absolute" value="#{ItensCompra.totalItens}"/>
                                            <ice:commandButton action="#{view$BuscarPedido.btnOKAlteraItem_action}" id="btnOKAlteraItem"
                                                style="left: 170px; top: 150px; position: absolute" value="OK"/>
                                        </ice:panelLayout>
                                    </ice:panelTab>
                                </ice:panelTabSet>
                                <!-- Fim Painel Buscar Orcamento -->
                            </ice:panelLayout>
                            <!-- Fim Painel Corpo Direita -->
                            <!-- Painel Rodapé -->
                            <ice:panelLayout id="painelRodape" layout="flow" styleClass="boxRodape">
                                <ice:panelLayout id="painelRodapeEsq" styleClass="esqRodape"/>
                                <ice:panelLayout id="logoRodape" styleClass="logoRodape"/>
                                <ice:panelLayout id="painelRodapeDir" styleClass="dirRodape"/>
                            </ice:panelLayout>
                            <!-- Fim Painel Rodapé -->
                        </ice:panelLayout>
                        <!-- Fim - Painel Corpo -->
                    </ice:panelGroup>
                    <!-- Fim - Painel Principal -->
                    <ice:panelPopup binding="#{view$BuscarPedido.panelPopup1}" draggable="true" id="panelPopup1"
                        rendered="#{view$BuscarPedido.panelPopup1Bean.showDraggablePanel}"
                        style="display: block; height: 142px; left: 432px; top: 264px; position: absolute; width: 214px" styleClass="jpopup" visible="#{view$BuscarPedido.panelPopup1Bean.showModalPanel}">
                        <f:facet name="header">
                            <ice:panelGrid id="panelGrid1" style="display:block;width:180px;height:20px;">
                                <ice:outputText id="textoCabecalhoPopUp" value="Atenção"/>
                            </ice:panelGrid>
                        </f:facet>
                        <f:facet name="body">
                            <ice:panelGrid id="panelGrid2" style="display: block; height: 86px; width: 180px">
                                <ice:outputText binding="#{view$BuscarPedido.textoPopUp}" id="textoPopUp" value="body text"/>
                                <ice:commandButton action="#{view$BuscarPedido.btnPopUp1_action}" binding="#{view$BuscarPedido.btnPopUp1}" id="btnPopUp1" value="submit"/>
                                <ice:commandButton action="#{view$BuscarPedido.btnPopUp2_action}" binding="#{view$BuscarPedido.btnPopUp2}" id="btnPopUp2" value="submit"/>
                            </ice:panelGrid>
                        </f:facet>
                    </ice:panelPopup>
                </ice:form>
            </ice:outputBody>
        </ice:outputHtml>
    </f:view>
</jsp:root>
